package com.jia.train.batch.response;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.quartz.Trigger;

import java.util.Date;

@Data
public class CronJobResponse {

    private String jobClassName;

    private String jobClassGroup;

    private Date nextFireTime;

    private Date prevFireTime;

    private String cronExpression;

    private String description;

    private Trigger.TriggerState state;

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("jobClassName", jobClassName)
                .append("jobClassGroup", jobClassGroup)
                .append("nextFireTime", nextFireTime)
                .append("prevFireTime", prevFireTime)
                .append("cronExpression", cronExpression)
                .append("description", description)
                .toString();
    }
}
